package com.bigegg.employee.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.bigegg.employee.mapper.BoardCollectMapper;
import com.bigegg.employee.domain.BoardCollect;
import com.bigegg.employee.service.IBoardCollectService;

/**
 * 公告收藏Service业务层处理
 * 
 * @author sun
 * @date 2022-08-15
 */
@Service
public class BoardCollectServiceImpl implements IBoardCollectService 
{
    @Autowired
    private BoardCollectMapper boardCollectMapper;

    /**
     * 查询公告收藏
     * 
     * @param id 公告收藏主键
     * @return 公告收藏
     */
    @Override
    public BoardCollect selectBoardCollectById(Long id)
    {
        return boardCollectMapper.selectBoardCollectById(id);
    }

    /**
     * 查询公告收藏列表
     * 
     * @param boardCollect 公告收藏
     * @return 公告收藏
     */
    @Override
    public List<BoardCollect> selectBoardCollectList(BoardCollect boardCollect)
    {
        return boardCollectMapper.selectBoardCollectList(boardCollect);
    }

    /**
     * 新增公告收藏
     * 
     * @param boardCollect 公告收藏
     * @return 结果
     */
    @Override
    public int insertBoardCollect(BoardCollect boardCollect)
    {
        return boardCollectMapper.insertBoardCollect(boardCollect);
    }

    /**
     * 修改公告收藏
     * 
     * @param boardCollect 公告收藏
     * @return 结果
     */
    @Override
    public int updateBoardCollect(BoardCollect boardCollect)
    {
        return boardCollectMapper.updateBoardCollect(boardCollect);
    }

    /**
     * 批量删除公告收藏
     * 
     * @param ids 需要删除的公告收藏主键
     * @return 结果
     */
    @Override
    public int deleteBoardCollectByIds(Long[] ids)
    {
        return boardCollectMapper.deleteBoardCollectByIds(ids);
    }

    /**
     * 删除公告收藏信息
     * 
     * @param id 公告收藏主键
     * @return 结果
     */
    @Override
    public int deleteBoardCollectById(Long id)
    {
        return boardCollectMapper.deleteBoardCollectById(id);
    }
}
